﻿namespace QLPhongMach
{
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Helpers;
    using DevExpress.XtraBars.Ribbon;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraNavBar;
    using DevExpress.XtraTab;
    using DevExpress.XtraTab.ViewInfo;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class frmMain2 : RibbonForm
    {
        private ApplicationMenu appMenu;
        private BarButtonItem barButtonItem1;
        private BarButtonItem barButtonItem2;
        private BarButtonItem barButtonItem4;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private ButtonEdit buttonEdit;
        private NavBarItem calendarItem;
        private IContainer components = null;
        private NavBarItem draftsItem;
        private RibbonPageGroup exitRibbonPageGroup;
        private RibbonPageGroup grM01_01;
        private RibbonPageGroup grM01_02;
        private RibbonPageGroup grM01_03;
        private RibbonPage helpRibbonPage;
        private RibbonPageGroup helpRibbonPageGroup;
        private RibbonPage homeRibbonPage;
        private BarButtonItem iAbout;
        private BarButtonItem iExit;
        private RibbonPage M01;
        private BarButtonItem M01_01;
        private BarButtonItem M01_02;
        private BarButtonItem M01_03;
        private NavBarGroup mailGroup;
        private NavBarControl navBarControl;
        private ImageList navbarImageList;
        private ImageList navbarImageListLarge;
        private NavBarGroup navM01_01;
        private NavBarItem nM01_01_01;
        private NavBarItem nM01_01_02;
        private PopupControlContainer popupControlContainer1;
        private PopupControlContainer popupControlContainer2;
        private RibbonGalleryBarItem rgbiSkins;
        private RibbonControl ribbonControl;
        private DevExpress.Utils.ImageCollection ribbonImageCollection;
        private DevExpress.Utils.ImageCollection ribbonImageCollectionLarge;
        private RibbonStatusBar ribbonStatusBar;
        private RibbonPageGroup skinsRibbonPageGroup;
        private LabelControl someLabelControl1;
        private LabelControl someLabelControl2;
        private SplitContainerControl splitContainerControl;
        private XtraTabControl tabMain;
        private NavBarItem tasksItem;
        private NavBarItem trashItem;
        private XtraTabPage xtraTabPage1;
        private XtraTabPage xtraTabPage2;

        public frmMain2()
        {
            this.InitializeComponent();
            this.InitSkinGallery();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void f_Add_Form(string formName, string DisplayName, UserControl uc)
        {
            XtraTabPage page = new XtraTabPage {
                Name = formName,
                Text = DisplayName
            };
            page.Controls.Add(uc);
            uc.Dock = DockStyle.Fill;
            this.tabMain.TabPages.Add(page);
            this.tabMain.SelectedTabPage = page;
        }

        private bool f_Check_IsFormOpen(string formName)
        {
            for (int i = 0; i < this.tabMain.TabPages.Count; i++)
            {
                if (this.tabMain.TabPages[i].Name == formName)
                {
                    this.tabMain.SelectedTabPageIndex = i;
                    return true;
                }
            }
            return false;
        }

        private void frmMain2_Load(object sender, EventArgs e)
        {
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(frmMain2));
            this.splitContainerControl = new SplitContainerControl();
            this.navBarControl = new NavBarControl();
            this.mailGroup = new NavBarGroup();
            this.draftsItem = new NavBarItem();
            this.trashItem = new NavBarItem();
            this.navM01_01 = new NavBarGroup();
            this.nM01_01_01 = new NavBarItem();
            this.nM01_01_02 = new NavBarItem();
            this.calendarItem = new NavBarItem();
            this.tasksItem = new NavBarItem();
            this.navbarImageListLarge = new ImageList(this.components);
            this.navbarImageList = new ImageList(this.components);
            this.tabMain = new XtraTabControl();
            this.xtraTabPage1 = new XtraTabPage();
            this.xtraTabPage2 = new XtraTabPage();
            this.ribbonControl = new RibbonControl();
            this.appMenu = new ApplicationMenu(this.components);
            this.popupControlContainer2 = new PopupControlContainer(this.components);
            this.buttonEdit = new ButtonEdit();
            this.iExit = new BarButtonItem();
            this.popupControlContainer1 = new PopupControlContainer(this.components);
            this.someLabelControl2 = new LabelControl();
            this.someLabelControl1 = new LabelControl();
            this.ribbonImageCollection = new DevExpress.Utils.ImageCollection(this.components);
            this.iAbout = new BarButtonItem();
            this.rgbiSkins = new RibbonGalleryBarItem();
            this.M01_01 = new BarButtonItem();
            this.M01_02 = new BarButtonItem();
            this.M01_03 = new BarButtonItem();
            this.ribbonImageCollectionLarge = new DevExpress.Utils.ImageCollection(this.components);
            this.M01 = new RibbonPage();
            this.grM01_01 = new RibbonPageGroup();
            this.grM01_02 = new RibbonPageGroup();
            this.grM01_03 = new RibbonPageGroup();
            this.homeRibbonPage = new RibbonPage();
            this.skinsRibbonPageGroup = new RibbonPageGroup();
            this.exitRibbonPageGroup = new RibbonPageGroup();
            this.helpRibbonPage = new RibbonPage();
            this.helpRibbonPageGroup = new RibbonPageGroup();
            this.ribbonStatusBar = new RibbonStatusBar();
            this.barButtonItem1 = new BarButtonItem();
            this.barButtonItem2 = new BarButtonItem();
            this.barButtonItem4 = new BarButtonItem();
            this.barManager1 = new BarManager(this.components);
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.splitContainerControl.BeginInit();
            this.splitContainerControl.SuspendLayout();
            this.navBarControl.BeginInit();
            this.tabMain.BeginInit();
            this.tabMain.SuspendLayout();
            this.ribbonControl.BeginInit();
            this.appMenu.BeginInit();
            this.popupControlContainer2.BeginInit();
            this.popupControlContainer2.SuspendLayout();
            this.buttonEdit.Properties.BeginInit();
            this.popupControlContainer1.BeginInit();
            this.popupControlContainer1.SuspendLayout();
            this.ribbonImageCollection.BeginInit();
            this.ribbonImageCollectionLarge.BeginInit();
            this.barManager1.BeginInit();
            base.SuspendLayout();
            this.splitContainerControl.Dock = DockStyle.Fill;
            this.splitContainerControl.Location = new Point(0, 0x90);
            this.splitContainerControl.Name = "splitContainerControl";
            this.splitContainerControl.Padding = new Padding(6);
            this.splitContainerControl.Panel1.Controls.Add(this.navBarControl);
            this.splitContainerControl.Panel1.Text = "Panel1";
            this.splitContainerControl.Panel2.Controls.Add(this.tabMain);
            this.splitContainerControl.Panel2.Text = "Panel2";
            this.splitContainerControl.Size = new Size(0x3f6, 0x20c);
            this.splitContainerControl.SplitterPosition = 0xbc;
            this.splitContainerControl.TabIndex = 0;
            this.splitContainerControl.Text = "splitContainerControl1";
            this.navBarControl.ActiveGroup = this.mailGroup;
            this.navBarControl.Dock = DockStyle.Fill;
            this.navBarControl.Groups.AddRange(new NavBarGroup[] { this.mailGroup, this.navM01_01 });
            this.navBarControl.Items.AddRange(new NavBarItem[] { this.draftsItem, this.trashItem, this.calendarItem, this.tasksItem, this.nM01_01_01, this.nM01_01_02 });
            this.navBarControl.LargeImages = this.navbarImageListLarge;
            this.navBarControl.Location = new Point(0, 0);
            this.navBarControl.Name = "navBarControl";
            this.navBarControl.OptionsNavPane.ExpandedWidth = 0xbc;
            this.navBarControl.PaintStyleKind = NavBarViewKind.ExplorerBar;
            this.navBarControl.Size = new Size(0xbc, 0x200);
            this.navBarControl.SmallImages = this.navbarImageList;
            this.navBarControl.StoreDefaultPaintStyleName = true;
            this.navBarControl.TabIndex = 0;
            this.navBarControl.Text = "navBarControl1";
            this.mailGroup.Caption = "Mail";
            this.mailGroup.Expanded = true;
            this.mailGroup.ItemLinks.AddRange(new NavBarItemLink[] { new NavBarItemLink(this.draftsItem), new NavBarItemLink(this.trashItem) });
            this.mailGroup.LargeImageIndex = 0;
            this.mailGroup.Name = "mailGroup";
            this.draftsItem.Caption = "Drafts";
            this.draftsItem.Name = "draftsItem";
            this.draftsItem.SmallImageIndex = 2;
            this.trashItem.Caption = "Trash";
            this.trashItem.Name = "trashItem";
            this.trashItem.SmallImageIndex = 3;
            this.navM01_01.Caption = "Kh\x00e1m bệnh";
            this.navM01_01.Expanded = true;
            this.navM01_01.ItemLinks.AddRange(new NavBarItemLink[] { new NavBarItemLink(this.nM01_01_01), new NavBarItemLink(this.nM01_01_02) });
            this.navM01_01.LargeImage = (Image) manager.GetObject("navM01_01.LargeImage");
            this.navM01_01.Name = "navM01_01";
            this.nM01_01_02.Caption = "Kh\x00e1m bệnh";
            this.nM01_01_02.LargeImage = (Image) manager.GetObject("nM01_01_02.LargeImage");
            this.nM01_01_02.Name = "nM01_01_02";
            this.nM01_01_02.SmallImage = (Image) manager.GetObject("nM01_01_02.SmallImage");
            this.calendarItem.Caption = "Calendar";
            this.calendarItem.Name = "calendarItem";
            this.calendarItem.SmallImageIndex = 4;
            this.tasksItem.Caption = "Tasks";
            this.tasksItem.Name = "tasksItem";
            this.tasksItem.SmallImageIndex = 5;
            this.navbarImageListLarge.ImageStream = (ImageListStreamer) manager.GetObject("navbarImageListLarge.ImageStream");
            this.navbarImageListLarge.TransparentColor = Color.Transparent;
            this.navbarImageListLarge.Images.SetKeyName(0, "Mail_16x16.png");
            this.navbarImageListLarge.Images.SetKeyName(1, "Organizer_16x16.png");
            this.navbarImageList.ImageStream = (ImageListStreamer) manager.GetObject("navbarImageList.ImageStream");
            this.navbarImageList.TransparentColor = Color.Transparent;
            this.navbarImageList.Images.SetKeyName(0, "Inbox_16x16.png");
            this.navbarImageList.Images.SetKeyName(1, "Outbox_16x16.png");
            this.navbarImageList.Images.SetKeyName(2, "Drafts_16x16.png");
            this.navbarImageList.Images.SetKeyName(3, "Trash_16x16.png");
            this.navbarImageList.Images.SetKeyName(4, "Calendar_16x16.png");
            this.navbarImageList.Images.SetKeyName(5, "Tasks_16x16.png");
            this.tabMain.ClosePageButtonShowMode = ClosePageButtonShowMode.InAllTabPageHeaders;
            this.tabMain.Dock = DockStyle.Fill;
            this.tabMain.Location = new Point(0, 0);
            this.tabMain.Name = "tabMain";
            this.tabMain.SelectedTabPage = this.xtraTabPage1;
            this.tabMain.Size = new Size(0x329, 0x200);
            this.tabMain.TabIndex = 0;
            this.tabMain.TabPages.AddRange(new XtraTabPage[] { this.xtraTabPage1, this.xtraTabPage2 });
            this.tabMain.CloseButtonClick += new EventHandler(this.tabMain_CloseButtonClick);
            this.xtraTabPage1.Name = "xtraTabPage1";
            this.xtraTabPage1.Size = new Size(0x323, 0x1e4);
            this.xtraTabPage1.Text = "xtraTabPage1";
            this.xtraTabPage2.Name = "xtraTabPage2";
            this.xtraTabPage2.Size = new Size(0x323, 0x1e4);
            this.xtraTabPage2.Text = "xtraTabPage2";
            this.ribbonControl.ApplicationButtonDropDownControl = this.appMenu;
            this.ribbonControl.ApplicationButtonText = null;
            this.ribbonControl.ApplicationIcon = (Bitmap) manager.GetObject("ribbonControl.ApplicationIcon");
            this.ribbonControl.ExpandCollapseItem.Id = 0;
            this.ribbonControl.Images = this.ribbonImageCollection;
            this.ribbonControl.Items.AddRange(new BarItem[] { this.ribbonControl.ExpandCollapseItem, this.iExit, this.iAbout, this.rgbiSkins, this.M01_01, this.M01_02, this.M01_03, this.barButtonItem1, this.barButtonItem2, this.barButtonItem4 });
            this.ribbonControl.LargeImages = this.ribbonImageCollectionLarge;
            this.ribbonControl.Location = new Point(0, 0);
            this.ribbonControl.MaxItemId = 0x4d;
            this.ribbonControl.Name = "ribbonControl";
            this.ribbonControl.PageHeaderItemLinks.Add(this.iAbout);
            this.ribbonControl.Pages.AddRange(new RibbonPage[] { this.M01, this.homeRibbonPage, this.helpRibbonPage });
            this.ribbonControl.RibbonStyle = RibbonControlStyle.Office2010;
            this.ribbonControl.ShowApplicationButton = DefaultBoolean.False;
            this.ribbonControl.ShowPageHeadersMode = ShowPageHeadersMode.Show;
            this.ribbonControl.ShowToolbarCustomizeItem = false;
            this.ribbonControl.Size = new Size(0x3f6, 0x90);
            this.ribbonControl.StatusBar = this.ribbonStatusBar;
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
            this.appMenu.BottomPaneControlContainer = this.popupControlContainer2;
            this.appMenu.ItemLinks.Add(this.iExit);
            this.appMenu.ItemLinks.Add(this.barButtonItem1);
            this.appMenu.ItemLinks.Add(this.barButtonItem2);
            this.appMenu.ItemLinks.Add(this.barButtonItem4);
            this.appMenu.Name = "appMenu";
            this.appMenu.Ribbon = this.ribbonControl;
            this.appMenu.RightPaneControlContainer = this.popupControlContainer1;
            this.appMenu.ShowRightPane = true;
            this.popupControlContainer2.Appearance.BackColor = Color.Transparent;
            this.popupControlContainer2.Appearance.Options.UseBackColor = true;
            this.popupControlContainer2.BorderStyle = BorderStyles.NoBorder;
            this.popupControlContainer2.Controls.Add(this.buttonEdit);
            this.popupControlContainer2.Location = new Point(0xee, 0x121);
            this.popupControlContainer2.Name = "popupControlContainer2";
            this.popupControlContainer2.Ribbon = this.ribbonControl;
            this.popupControlContainer2.Size = new Size(0x76, 0x1c);
            this.popupControlContainer2.TabIndex = 3;
            this.popupControlContainer2.Visible = false;
            this.buttonEdit.EditValue = "Some Text";
            this.buttonEdit.Location = new Point(3, 5);
            this.buttonEdit.MenuManager = this.ribbonControl;
            this.buttonEdit.Name = "buttonEdit";
            this.buttonEdit.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.buttonEdit.Size = new Size(100, 20);
            this.buttonEdit.TabIndex = 0;
            this.iExit.Caption = "Exit";
            this.iExit.Description = "Closes this program after prompting you to save unsaved data.";
            this.iExit.Hint = "Closes this program after prompting you to save unsaved data";
            this.iExit.Id = 20;
            this.iExit.ImageIndex = 6;
            this.iExit.LargeImageIndex = 6;
            this.iExit.Name = "iExit";
            this.popupControlContainer1.Appearance.BackColor = Color.Transparent;
            this.popupControlContainer1.Appearance.Options.UseBackColor = true;
            this.popupControlContainer1.BorderStyle = BorderStyles.NoBorder;
            this.popupControlContainer1.Controls.Add(this.someLabelControl2);
            this.popupControlContainer1.Controls.Add(this.someLabelControl1);
            this.popupControlContainer1.Location = new Point(0x6f, 0xc5);
            this.popupControlContainer1.Name = "popupControlContainer1";
            this.popupControlContainer1.Ribbon = this.ribbonControl;
            this.popupControlContainer1.Size = new Size(0x4c, 70);
            this.popupControlContainer1.TabIndex = 2;
            this.popupControlContainer1.Visible = false;
            this.someLabelControl2.Location = new Point(3, 0x39);
            this.someLabelControl2.Name = "someLabelControl2";
            this.someLabelControl2.Size = new Size(0x31, 13);
            this.someLabelControl2.TabIndex = 0;
            this.someLabelControl2.Text = "Some Info";
            this.someLabelControl1.Location = new Point(3, 3);
            this.someLabelControl1.Name = "someLabelControl1";
            this.someLabelControl1.Size = new Size(0x31, 13);
            this.someLabelControl1.TabIndex = 0;
            this.someLabelControl1.Text = "Some Info";
            this.ribbonImageCollection.ImageStream = (ImageCollectionStreamer) manager.GetObject("ribbonImageCollection.ImageStream");
            this.iAbout.Caption = "About";
            this.iAbout.Description = "Displays general program information.";
            this.iAbout.Hint = "Displays general program information";
            this.iAbout.Id = 0x18;
            this.iAbout.ImageIndex = 8;
            this.iAbout.LargeImageIndex = 8;
            this.iAbout.Name = "iAbout";
            this.rgbiSkins.Caption = "Skins";
            this.rgbiSkins.Gallery.AllowHoverImages = true;
            this.rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseFont = true;
            this.rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions = true;
            this.rgbiSkins.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.HAlignment = HorzAlignment.Center;
            this.rgbiSkins.Gallery.ColumnCount = 4;
            this.rgbiSkins.Gallery.FixedHoverImageSize = false;
            this.rgbiSkins.Gallery.ImageSize = new Size(0x20, 0x11);
            this.rgbiSkins.Gallery.ItemImageLocation = Locations.Top;
            this.rgbiSkins.Gallery.RowCount = 4;
            this.rgbiSkins.Id = 60;
            this.rgbiSkins.Name = "rgbiSkins";
            this.M01_01.Caption = "Kh\x00e1m bệnh";
            this.M01_01.Id = 0x3f;
            this.M01_01.LargeWidth = 80;
            this.M01_01.Name = "M01_01";
            this.M01_01.RibbonStyle = RibbonItemStyles.Large;
            this.M01_02.Caption = "B\x00e1o c\x00e1o";
            this.M01_02.Id = 0x40;
            this.M01_02.LargeWidth = 80;
            this.M01_02.Name = "M01_02";
            this.M01_02.RibbonStyle = RibbonItemStyles.Large;
            this.M01_03.Alignment = BarItemLinkAlignment.Left;
            this.M01_03.AllowAllUp = true;
            this.M01_03.Caption = "Danh mục";
            this.M01_03.Id = 0x41;
            this.M01_03.LargeWidth = 80;
            this.M01_03.Name = "M01_03";
            this.M01_03.RibbonStyle = RibbonItemStyles.Large;
            this.ribbonImageCollectionLarge.ImageSize = new Size(0x20, 0x20);
            this.ribbonImageCollectionLarge.ImageStream = (ImageCollectionStreamer) manager.GetObject("ribbonImageCollectionLarge.ImageStream");
            this.M01.Groups.AddRange(new RibbonPageGroup[] { this.grM01_01, this.grM01_02, this.grM01_03 });
            this.M01.Name = "M01";
            this.M01.Text = "Bệnh nh\x00e2n";
            this.grM01_01.ItemLinks.Add(this.M01_01);
            this.grM01_01.Name = "grM01_01";
            this.grM01_01.ShowCaptionButton = false;
            this.grM01_02.ItemLinks.Add(this.M01_02);
            this.grM01_02.Name = "grM01_02";
            this.grM01_02.ShowCaptionButton = false;
            this.grM01_03.ItemLinks.Add(this.M01_03);
            this.grM01_03.ItemLinks.Add(this.barButtonItem2);
            this.grM01_03.ItemLinks.Add(this.barButtonItem1);
            this.grM01_03.ItemLinks.Add(this.barButtonItem4);
            this.grM01_03.Name = "grM01_03";
            this.grM01_03.ShowCaptionButton = false;
            this.homeRibbonPage.Groups.AddRange(new RibbonPageGroup[] { this.skinsRibbonPageGroup, this.exitRibbonPageGroup });
            this.homeRibbonPage.Name = "homeRibbonPage";
            this.homeRibbonPage.Text = "Home";
            this.skinsRibbonPageGroup.ItemLinks.Add(this.rgbiSkins);
            this.skinsRibbonPageGroup.Name = "skinsRibbonPageGroup";
            this.skinsRibbonPageGroup.ShowCaptionButton = false;
            this.skinsRibbonPageGroup.Text = "Skins";
            this.exitRibbonPageGroup.ItemLinks.Add(this.iExit);
            this.exitRibbonPageGroup.Name = "exitRibbonPageGroup";
            this.exitRibbonPageGroup.Text = "Exit";
            this.helpRibbonPage.Groups.AddRange(new RibbonPageGroup[] { this.helpRibbonPageGroup });
            this.helpRibbonPage.Name = "helpRibbonPage";
            this.helpRibbonPage.Text = "Help";
            this.helpRibbonPageGroup.ItemLinks.Add(this.iAbout);
            this.helpRibbonPageGroup.Name = "helpRibbonPageGroup";
            this.helpRibbonPageGroup.Text = "Help";
            this.ribbonStatusBar.Location = new Point(0, 0x29c);
            this.ribbonStatusBar.Name = "ribbonStatusBar";
            this.ribbonStatusBar.Ribbon = this.ribbonControl;
            this.ribbonStatusBar.Size = new Size(0x3f6, 0x1f);
            this.barButtonItem1.ActAsDropDown = true;
            this.barButtonItem1.Caption = "barButtonItem1";
            this.barButtonItem1.Id = 0x48;
            this.barButtonItem1.Name = "barButtonItem1";
            this.barButtonItem2.ActAsDropDown = true;
            this.barButtonItem2.Caption = "barButtonItem2";
            this.barButtonItem2.Id = 0x4a;
            this.barButtonItem2.Name = "barButtonItem2";
            this.barButtonItem4.ActAsDropDown = true;
            this.barButtonItem4.Caption = "barButtonItem4";
            this.barButtonItem4.Id = 0x4c;
            this.barButtonItem4.Name = "barButtonItem4";
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.MaxItemId = 0;
            this.barDockControlTop.CausesValidation = false;
            this.barDockControlTop.Dock = DockStyle.Top;
            this.barDockControlTop.Location = new Point(0, 0);
            this.barDockControlTop.Size = new Size(0x3f6, 0);
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock = DockStyle.Bottom;
            this.barDockControlBottom.Location = new Point(0, 0x2bb);
            this.barDockControlBottom.Size = new Size(0x3f6, 0);
            this.barDockControlLeft.CausesValidation = false;
            this.barDockControlLeft.Dock = DockStyle.Left;
            this.barDockControlLeft.Location = new Point(0, 0);
            this.barDockControlLeft.Size = new Size(0, 0x2bb);
            this.barDockControlRight.CausesValidation = false;
            this.barDockControlRight.Dock = DockStyle.Right;
            this.barDockControlRight.Location = new Point(0x3f6, 0);
            this.barDockControlRight.Size = new Size(0, 0x2bb);
            base.AllowFormGlass = DefaultBoolean.False;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x3f6, 0x2bb);
            base.Controls.Add(this.splitContainerControl);
            base.Controls.Add(this.ribbonControl);
            base.Controls.Add(this.popupControlContainer1);
            base.Controls.Add(this.popupControlContainer2);
            base.Controls.Add(this.ribbonStatusBar);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "frmMain2";
            this.Ribbon = this.ribbonControl;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.StatusBar = this.ribbonStatusBar;
            this.Text = "Ph\x00f2ng mạch";
            base.Load += new EventHandler(this.frmMain2_Load);
            this.splitContainerControl.EndInit();
            this.splitContainerControl.ResumeLayout(false);
            this.navBarControl.EndInit();
            this.tabMain.EndInit();
            this.tabMain.ResumeLayout(false);
            this.ribbonControl.EndInit();
            this.appMenu.EndInit();
            this.popupControlContainer2.EndInit();
            this.popupControlContainer2.ResumeLayout(false);
            this.buttonEdit.Properties.EndInit();
            this.popupControlContainer1.EndInit();
            this.popupControlContainer1.ResumeLayout(false);
            this.popupControlContainer1.PerformLayout();
            this.ribbonImageCollection.EndInit();
            this.ribbonImageCollectionLarge.EndInit();
            this.barManager1.EndInit();
            base.ResumeLayout(false);
        }

        private void InitSkinGallery()
        {
            SkinHelper.InitSkinGallery(this.rgbiSkins, true);
        }

        private void tabMain_CloseButtonClick(object sender, EventArgs e)
        {
            XtraTabControl control = sender as XtraTabControl;
            ClosePageButtonEventArgs args = e as ClosePageButtonEventArgs;
            (args.Page as XtraTabPage).Dispose();
        }
    }
}

